<%@page import="pro.syj.dao.ScoreDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>成绩删除操作</title>
	<link rel='stylesheet' href='CSS/decorator1.css'>
</head>

<body>
	<%
	    // 设置获取注册时的编码为UTF-8
	    request.setCharacterEncoding("UTF-8");
	
	    //获取页面的userid
	    String cid = request.getParameter("cid");
	    String sid = request.getParameter("sid");
	
	    //引入数据交互层
		ScoreDao scoredao = new ScoreDao();
	    
	    // 获取删除用户的信息
	    int flag = scoredao.deleteScore(cid, sid);
	
	    if (flag == 1) {
	        response.sendRedirect("managerQscore.jsp");
	    } else {
	        response.sendRedirect("error.jsp");
	    }
	%>
</body>
</html>